<?php
/**
 * Description of Emms_Cron_SavingsInterestCapitalization
 *
 * @author andres
 */
class Emms_Cron_SavingsInterestCapitalization extends Emms_Cron implements Emms_Interface_Cron
{
    public function update()
    {
        $this->db->beginTransaction();
        try {
            $this->db->query("call cron_savings_interest_capitalization(?)",array($this->date));
        } catch (Zend_Exception $e) {
            $this->db->rollBack();
            throw $e;
        }
        $this->db->commit();
    }
}
